const mongoose = require("mongoose");
const { DB_URL } = require("../config");
module.exports = {
    connect: () => {
        mongoose
            .connect(DB_URL)
            .then(() => {
                console.log("MongoDB Connected");
            })
            .catch((err) => {
                console.log(err);
                process.exit(1);
            });
    }
};
